package com.example.demo.obs;

import java.io.IOException;
import java.util.Properties;



public class ObsConfig {
	 
     public final static String AK;
     public final static String SK;
     public final static String END_POINT;
     public final static String BUCKET_NAME;
     public final static String FLODER_FILE_NAME;
//     public final static String FLODER_YUE_NAME;
//     public final static String FLODER_DOCUMENT_NAME;
   
     static {
    	Properties prop = new Properties();
    	try {
			prop.load(ObsConfig.class.getClassLoader().getResourceAsStream("config/obs.properties"));
		} catch (IOException e) {
			e.printStackTrace();
		}
    	AK=prop.getProperty("ak");
    	SK=prop.getProperty("sk");
    	END_POINT=prop.getProperty("end-point");
    	BUCKET_NAME=prop.getProperty("bucket-name");
    	FLODER_FILE_NAME=prop.getProperty("floder-file-name");
//    	FLODER_YUE_NAME=prop.getProperty("floder-yue-name");
//    	FLODER_DOCUMENT_NAME=prop.getProperty("floder-document-name");
     }
//     public static void main(String[] args) {
//		System.out.println(ObsConfig.AK);
//		System.out.println(ObsConfig.SK);
//		System.out.println(ObsConfig.END_POINT);
//		System.out.println(ObsConfig.BUCKET_NAME);
//		System.out.println(ObsConfig.FLODER_FILE_NAME);
//		System.out.println(ObsConfig.FLODER_YUE_NAME);
//	}
}
